package com.gzx.asr.modular.media.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.asr.modular.media.mapper.GzxHtCallReceiptBusinessMapper;
import com.gzx.asr.modular.media.service.GzxHtCallReceiptBusinessService;
import com.gzx.asr.modular.media.vo.GzxHtCallReceiptBusinessVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xbl
 */
@Slf4j
@Service
public class GzxHtCallReceiptBusinessServiceImpl implements GzxHtCallReceiptBusinessService {

    private final GzxHtCallReceiptBusinessMapper gzxHtCallReceiptBusinessMapper;

    @Autowired
    public GzxHtCallReceiptBusinessServiceImpl(GzxHtCallReceiptBusinessMapper gzxHtCallReceiptBusinessMapper) {
        this.gzxHtCallReceiptBusinessMapper = gzxHtCallReceiptBusinessMapper;
    }

    //每次按照最大id扫描出100条
    @DS("tjzy-async")
    @Override
    public List<GzxHtCallReceiptBusinessVo> getVoiceByMaxId(int maxVoiceId) {
        return gzxHtCallReceiptBusinessMapper.getVoiceByMaxId(maxVoiceId);
    }
}
